package marionito.daoimpl;

import javax.ejb.Stateless;

import marionito.dao.JetonDao;
import marionito.domaine.Jeton;

@SuppressWarnings("serial")
@Stateless
public class JetonDaoImpl extends DaoImpl<Integer,Jeton> implements JetonDao{

	@Override
	public Jeton rechercherJeton(String valeur) {
		String query = "select j from Jeton j where j.valeur = ?1";
		return recherche(query,Integer.parseInt(valeur));
	}

}
